from django.db import models

# Create your models here.
class Warehouse(models.Model):
    name=models.CharField('仓库',max_length=32,unique=True)
    class Meta:
        verbose_name='仓库'
    def __str__(self):
        return self.name
    
class Good_category(models.Model):
    name=models.CharField('分类名称',max_length=32,unique=True)
    description=models.CharField('描述',max_length=32,unique=True)

    class Meta:
        verbose_name="分类"

    def __str__(self):
        return self.name